package other;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: javase
 * @description:
 * @author: lld
 * @create: 2021-03-31 23:04
 **/
public class TestOOM {
    public static void main(String[] args) {
//        doIt("d");
//        System.out.println("end");
        List<DvcDevice> dvcDevices = new ArrayList<>();
        while (true) {
//            try {
//                Thread.sleep(1000);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
            dvcDevices.add(new DvcDevice());
        }

    }
//    public static void doIt(String s){
////        StringBuilder stringBuilder = new StringBuilder();
//        StringBuffer stringBuffer = new StringBuffer(s);
//        stringBuffer.append("s");
//        doIt("x");
//    }
}
